package com.kl.feign;

import com.kl.domain.UserDTO;
import com.kl.em.Result;
import com.kl.feign.fallback.CarServiceFeignFallback;
import com.kl.feign.fallback.LoginsServiceFeignFallback;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "kunlun-login-service-a",fallback = LoginsServiceFeignFallback.class)//服务
public interface LoginsServiceFeign {

    @GetMapping("/user/getLoginUser")
     Result<UserDTO> getLoginUser();
}
